<script src="<{$xoops_url}>/modules/xanhte/js/lib/prototype.js"></script>
<script src="<{$xoops_url}>/modules/xanhte/js/lib/gettext.js"></script>
<script src="<{$xoops_url}>/modules/xanhte/json.php?json_gettext=1&amp;module=news"></script>
<script src="<{$xoops_url}>/modules/xanhte/js/xeditor.js" charset="utf-8"></script>
<h3><{$app.mod.name.value}><{$smarty.const._AM_XNEWS_ARTICLE_LIST}></h3>

<ul class="toptab">
	<li><a href="../post.php" rel="nofollow"><{$app.mod.name.value}><{$smarty.const._AM_XNEWS_ARTICLE_CREATE}></a></li>
</ul>
<{if count($app.articles)==0}>
<p><{$app.mod.name.value}><{$smarty.const._AM_XNEWS_ARTICLE_NOT_EXISTS}></p>
<{else}>
<div class="pager"><{$app_ne.pager.all}></div>
<table class="outer">
<tr>
	<th>ID</th>
	<th><{$smarty.const._MI_XNEWS_AF_a_title}></th>
	<th><{$smarty.const._MI_XNEWS_AF_a_ptime_date}></th>
	<th><{$smarty.const._MI_XNEWS_AF_a_ctime}></th>
	<th><{$smarty.const._MI_XNEWS_AF_a_utime}></th>
	<th><{$smarty.const._MI_XNEWS_AF_a_uid}></th>
	<th><{$smarty.const._MI_XNEWS_AF_a_topicid}></th>
	<th><{$smarty.const._MI_XNEWS_AF_a_status}></th>
	<th><{$smarty.const._EDIT}></th>
</tr>
<{foreach from=$app.articles.1 item=a}>
<tr class="<{if $a.a_status==0}>odd<{else}>even<{/if}>">
	<td><{$a.a_id}></td>
	<td><{$a.a_title}></td>
	<td><{"Y-m-d H:i"|date:$a.a_ptime}></td>
	<td><{"Y-m-d H:i"|date:$a.a_ctime}></td>
	<td><{"Y-m-d H:i"|date:$a.a_utime}></td>
	<td><{$a.a_uname}></td>
	<td><{$a.a_topic_title}></td>
	<td><span style="visibility : hidden ;"><{$a.a_status}></span><{form_input name="a_status" key_value=$a.a_id attr="onchange=xnews.changeArticleState(this);"}></td>
	</td>
	<td>
		<a href="../post.php?a_id=<{$a.a_id}>" rel="nofollow"><{$smarty.const._EDIT}><a/>&nbsp;|&nbsp;
		<a href="./index.php?action_admin_news_article_remove=1&amp;a_id=<{$a.a_id}>"><{$smarty.const._DELETE}><a/>&nbsp;|&nbsp;
<{*		<a href="../preview.php?a_id=<{$a.a_id}>" rel="nofollow"><{$smarty.const._PREVIEW}><a/> *}>
	</td></tr>
<{/foreach}>
</table>
<{/if}>
<script>
xnews = new xEditor("<{$app.dirname}>");
xoops_url = "<{$xoops_url}>";
</script>
<div class="pager"><{$app_ne.pager.all}></div>
